package org.word.model.path;

import lombok.Data;
import org.word.model.definition.SwaggerModelDefinitionRef;

/**
 * 大致格式：
 *           {
 *             "name": "appAuthCode",
 *             "in": "header",
 *             "description": "应用授权码，第三方系统调用时使用，和token header是互斥的，携带本参数时，不要携带token",
 *             "required": false,
 *             "type": "string"
 *           },
 *           或
 *            {
 *             "in": "body",
 *             "name": "appealDisposalOnOffReqVO",
 *             "description": "appealDisposalOnOffReqVO",
 *             "required": false,
 *             "schema": {
 *               "$ref": "#/definitions/接处警开关请求对象"
 *             }
 *           },
 */
@Data
public class ParameterItem {
    // 默认为1
    private int level = 1;

    private String name;

    /**
     * 取值可能为header、body
     */
    private String in;

    /**
     * 简单类型时，该字段有值，比如string
     */
    private String type;

    private String description;

    private Boolean required;

    private SwaggerModelDefinitionRef schema;
}
